/**
 * Copyright (c) 2006-2007 Jinyi.lu
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of GNU LGPL license by gun.org
 * which accompanies this distribution, and is available at
 * http://gnu.feld-it.at/copyleft/lesser.html
 * 
 * Project Homepage : http://code.google.com/p/demou
 * Source Code: svn checkout http://demou.googlecode.com/svn/trunk/ demou
 * Mailing list : jinyi.lu@gmail.com
 *                stonelu@126.com
 *
 *  
 * Contributors:
 *     JinYi.Lu - initial API and implementation
 */
package cn.tworen.demou.remoting;
import java.io.Serializable;

import javax.servlet.ServletContext;
import org.springframework.web.context.*;
import org.springframework.context.*;
import org.springframework.web.context.support.*;

public class WebServiceContext extends ContextLoaderListener implements Serializable{
   public static WebApplicationContext appContext = null;
   public void contextInitialized(javax.servlet.ServletContextEvent contextEvent){
       super.contextInitialized(contextEvent);
       ServletContext app = contextEvent.getServletContext();
       appContext = WebApplicationContextUtils.getWebApplicationContext(app);
   }
}
